import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import websocket from './services/websocket'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css';

const app = createApp(App)

const pinia = createPinia()
app.use(pinia)
app.use(router)
app.use(ElementPlus)

websocket.initWebSocket()

// 在全局使用 WebSocket 服务
app.config.globalProperties.$ws = websocket

app.mount('#app')


